<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
namespace Admin\Common;
use Think\Controller;
/**
 * Description of BaseController
 *
 * @author zhaokai
 */

class BaseController extends Controller {
    //put your code here
    function _initialize(){
        $admin = session("admin");
        if(!$admin){
            $this->redirect("login/index");
        }
    }
}
